<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			function getSum(num1, num2) {
				var sum = num1 + num2;
				console.log(num1 + "*" + num2 + "=" + (num1 + num2));
			}

			var getProduct = function(num1, num2) {
				return num1 + "*" + num2 + "=" + num1 * num2;
			}
			console.log(getProduct(2, 4));

			var a = 100;

			function test() {
				console.log(a);
				a = 10;
				console.log(a);
			}
			test();
			console.log(a);

			var a = 10;
			fun1();

			function fun1() {
				var b = 20;
				console.log(a);
				console.log(b);
				var a = 30;
			}

			function fun2(a, b) {
				console.log(arguments[0]);
				console.log(arguments[1]);
				console.log(arguments[2]);
			}
			fun2(1, 2, 3);
			console.log(fun2)

			for (var i in fun2) {
				console.log(fun[i]);
			}
		</script>
		
		<script>
		"use strict";
		function myFun(a,a){
			return 0;
		}
		</script>
		
		<script>
		"use strict";
		num = 100;
		</script>
<script type="text/javascript">
			try {
				num = 2;
			}catch(err){
				console.log("错误信息：" + err.message);
			}finally{
				console.log("错误信息：");
			}
		</script>
	</body>
</html>
